package com.example.diarymanger.service;

import com.example.diarymanger.bean.ApiResponse;
import com.example.diarymanger.bean.DiaryBean;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface DiaryService {
    ResponseEntity<ApiResponse> saveDiary(DiaryBean diaryBean);
    ResponseEntity<List<DiaryBean>> getDiariesByUserId(Long userId);
    DiaryBean getDiaryByDiaryId(Integer diaryId);
    boolean updateDiary(DiaryBean diaryBean);
    boolean deleteByDiaryId(Integer diaryId);
    ResponseEntity<List<DiaryBean>> getIsPublicDiaryAll();
}
